import request from '@/utils/request'
export function queryPersonDetail() {
  return request({
    url: '/user/person/findUserDetailDTO',
    method: 'post'
  })
}

export function updateBasePersonDetail(updatePerson) {
  return request({
    url: '/user/person/updateBaseUser',
    method: 'post',
    data: updatePerson
  })
}

export function updateSystemPersonDetail(updatePerson) {
  return request({
    url: '/user/person/updateSystemUser',
    method: 'post',
    data: updatePerson
  })
}

export function updateIntroduce(introduce) {
  return request({
    url: '/user/person/updateIntroduce',
    method: 'post',
    params: {introduce}
  })
}

export function updateHeadImage(headImage) {
  return request({
    url: '/user/person/updateHeadImage',
    method: 'post',
    params: {headImage}
  })
}

